package hy.iot.core.exception;

/**
 * 响应状态枚举类
 * @author yezhihao
 * https://gitee.com/yezhihao/jt808-server
 */
public enum FieldFailCodes implements IotBaseException {

    IOT_SCHEMA_PARSE_FAIL(1005, "协议解析失败"),
    IOT_SCHEMA_UN_KNOWN(1004, "解析器不存在"),
    IOT_CONFIG_FAIL(1003, "初始化失败,参数缺失"),
    IOT_FAIL_INIT(1002, "未初始化完成"),
    UnknownError(1001, "未知错误");

    private final int code;
    private final String message;

    FieldFailCodes(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}